package cn.juque.jdfsystem.enums;

import cn.juque.common.constants.BaseMessageEnum;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>JdfSystemMsgEnum</li>
 * </ul>
 * @date 2023-03-15 11:34:07
 **/
public enum JdfSystemMsgEnum implements BaseMessageEnum {

    /**
     * enum
     */
    LOGIN_FAIL("JDF-10000", "用户名或密码错误"),
    CONFIG_CODE_EXISTS("JDF-10001", "参数编码已存在"),
    SIGNATURE_CHECK_FAIL("JDF-10002", "签名校验失败"),
    UPLOAD_FILE_FAIL("JDF-10003", "上传文件失败"),
    PLATFORM_CHECK_FAIL("JDF-10004", "平台信息校验失败"),
    LIST_FILE_INFO_LIMIT("JDF-10005", "单次请求文件信息超限：100"),

    PERMISSION_PLATFORM_CONFLICT("JDF-10006", "平台ID存在重复"),

    JUST_DELETE_REGISTER_DOWN_LINE("JDF-10007", "只能删除已下线的注册信息"),

    CAPTCHA_INVALID("JDF-10008", "验证码无效"),
    ;

    private final String code;

    private final String msg;

    JdfSystemMsgEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 消息码
     *
     * @return String
     */
    @Override
    public String getCode() {
        return code;
    }

    /**
     * 消息报文
     *
     * @return String
     */
    @Override
    public String getMsg() {
        return msg;
    }
}
